def sample_function(x):
    if x > 0:
        print("Positive")
    else:
        print("Non-positive")
    return x


def test_loop_with_break_continue(x):
    while x > 0:
        if x % 2 == 0:
            continue
        x -= 1
        if x < 5:
            break
    return x


def complex_sample_function(x, y):
    result = 0
    if x > 0:
        print("x 是正数")
        if y % 2 == 0:
            print("y 是偶数")
            result = x + y
        else:
            print("y 是奇数")
            result = x - y
    elif x == 0:
        print("x 是零")
        result = y * 2
    else:
        print("x 是负数")
        result = abs(x)


def test_complex_function(x, y):
    result = complex_sample_function(x, y)
    return result